package com.lsj.gulimall.auth.feign;

import com.lsj.common.utils.R;
import com.lsj.gulimall.auth.vo.GiteeSocialUser;
import com.lsj.gulimall.auth.vo.UserLoginVo;
import com.lsj.gulimall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 梁胜君
 * @version 1.0
 * @create 2022/4/9 12:48
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/register")
    public R register(@RequestBody UserRegistVo vo);

    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/socialLogin")
    public R socialLogin(@RequestBody GiteeSocialUser socialUser);
}
